/******************************************************************************
*@file  : main.c
*@brief : This file provides SPI Master Demos
*@ver   : 1.0.0
*@date  : 2022.10.20
******************************************************************************/

#include "app.h"  

int main(void)
{
    HAL_Init();
    
    SystemClock_Config(SYSCLK_180M_SRC_RC64M, RCC_PCLK1_DIV_1, RCC_PCLK2_DIV_1);  

    HAL_Init_Ex();       
    
    BSP_UART_Init(UART1); 

    BSP_PB_Init();

    printfS("--------------------------------------------------------------------\r\n");
    
    /*  
    TEST_MASTER_COMM_LOOP,
    TSET_MASTER_COMM_IT,
    TEST_MASTER_FULLDUPLEX,
    TEST_MASTER_NOR_FLASH, 
    */
    SPI_Master_Test(TEST_MASTER_COMM_LOOP);

    while(1)
    {
        
    }

}
